package com.yfp.org.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.yfp.org.domain.dto.PositionDTO;
import com.yfp.org.mapper.PositionMapper;
import com.yfp.org.service.PositionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionServiceImpl implements PositionService {

    @Resource
    private PositionMapper positionMapper;

    @Override
    public List<PositionDTO> queryNameByIds(List<String> positionIds) {
        if (CollUtil.isEmpty(positionIds)) {
            return CollUtil.newArrayList();
        }
        return positionMapper.queryNameByIds(positionIds);
    }
}
